package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_tag"
    ,catalog="zutuan_prot"
)
public class JujuTag  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuTag";
	public static final String TABLE_NAME="juju_tag";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_tagname = "tagname"; 
	public static final String P_deleflag = "deleflag"; 
	public static final String P_tagdesc = "tagdesc"; 
	public static final String P_tagType = "tagType"; 

     private String id;
     private String tagname;
     private Integer deleflag;
     private String tagdesc;
     private Integer tagType;

    public JujuTag() {
    }
	
    public JujuTag(String id) {
        this.id = id;
    }
    public JujuTag(String id, String tagname, Integer deleflag, String tagdesc, Integer tagType) {
        this.id = id;
        this.tagname = tagname;
        this.deleflag = deleflag;
        this.tagdesc = tagdesc;
        this.tagType = tagType;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="TAGNAME", length=20)
    public String getTagname() {
        return this.tagname;
    }
    
    public void setTagname(String tagname) {
        this.tagname = tagname;
    }
    
    @Column(name="DELEFLAG")
    public Integer getDeleflag() {
        return this.deleflag;
    }
    
    public void setDeleflag(Integer deleflag) {
        this.deleflag = deleflag;
    }
    
    @Column(name="TAGDESC", length=20)
    public String getTagdesc() {
        return this.tagdesc;
    }
    
    public void setTagdesc(String tagdesc) {
        this.tagdesc = tagdesc;
    }
    
    @Column(name="TAG_TYPE")
    public Integer getTagType() {
        return this.tagType;
    }
    
    public void setTagType(Integer tagType) {
        this.tagType = tagType;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


